import request from '@/utils/request'

// 查询科研项目成员列表
export function listProjectMember(query) {
  return request({
    url: '/system/projectMember/list',
    method: 'get',
    params: query
  })
}

// 查询科研项目成员详细
export function getProjectMember(id) {
  return request({
    url: '/system/projectMember/' + id,
    method: 'get'
  })
}

// 新增科研项目成员
export function addProjectMember(data) {
  return request({
    url: '/system/projectMember',
    method: 'post',
    data: data
  })
}

// 修改科研项目成员
export function updateProjectMember(data) {
  return request({
    url: '/system/projectMember',
    method: 'put',
    data: data
  })
}

// 删除科研项目成员
export function delProjectMember(id) {
  return request({
    url: '/system/projectMember/' + id,
    method: 'delete'
  })
}
